ForEach<T> Method

Summary
Extension method provides a foreach like wrapper for IEnumerable.
Syntax
C#
VB
C++
public static void ForEach<T>( 
   this IEnumerable<T> source, 
   Action<T> action 
) 
  
<ExtensionAttribute()> 
Public Shared Sub ForEach(Of T)( _ 
   ByVal source As IEnumerable(Of T), _ 
   ByVal action As Action(Of T) _ 
)  
[ExtensionAttribute()] 
public: 
static void ForEachgeneric<typename T> 
(  
   IEnumerable<T^>^ source, 
   Action<T^>^ action 
)  

Parameters

source
The source enumeration

action
The action to perform.

Type Parameters

T
The IEnumerable object to iterate over.

Requirements

Target Platforms

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Dicom.AddIn Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.